<template>
  <div>
    <el-table :data="tableData" class="container">
      <el-row :gutter="20" type="flex" class="row-bg" justify="center">
        <el-col :span="3">
          <div class="grid-content bg-purple">
            <el-table-column :span="3" prop="image">
              <template v-slot="{ row }">
                <img style="width: 180px" :src="row.image" alt="" />
              </template>
            </el-table-column>
          </div>
        </el-col>
        <el-col :span="8"
          ><div class="grid-content bg-purple">
            <el-table-column label="介绍" prop="desc" /></div
        ></el-col>
      </el-row>
    </el-table>
  </div>
</template>

<script>
import { getAgents } from "@/api/user";
export default {
  data() {
    return {
      tableData: [],
    };
  },
  methods: {},
  async created() {
    const res = await getAgents({
      _limit: 2,
      _start: 0,
    });
    this.tableData = res.data;
    console.log(16, res.data);
  },
};
</script>

<style></style>
